home *** CD-ROM | disk | FTP | other *** search
/ CD School House 9 / CD School House 9.0 - Wayzata Technology (1994).iso / pc / games / mac / __adventureland__ / __adventure_helpers__ / dungeon_mastery_2_0 / info_home / card_6146.txt < prev    next >
Text File  |  1992-05-24  |  5KB  |  240 lines

  1. -- card: 6146 from stack: in
  2. -- bmap block id: 4038
  3. -- flags: 0000
  4. -- background id: 2549
  5. -- name: Stacks
  6. ----- HyperTalk script -----
  7. on openCard
  8.   setUserLevel the userLevel
  9.   if card field "User Name" is empty
  10.   then click at the loc of card field "User Name"
  11.   set the locktext of fld "paths" to false
  12. end openCard
  13.  
  14. on closeCard
  15.   set the locktext of fld "paths" to true
  16. end closeCard
  17.  
  18. on setUserLevel whatLevel
  19.   set userLevel to whatLevel
  20.   if the userLevel is whatLevel then
  21.     put the userLevel into card field "User Level"
  22.     set hilite of button "Browsing" to the userLevel = 1
  23.     set hilite of button "Typing" to the userLevel = 2
  24.     set hilite of button "Painting" to the userLevel = 3
  25.     set hilite of button "Authoring" to the userLevel = 4
  26.     set hilite of button "Scripting" to the userLevel = 5
  27.     set visible of button "Power Keys" to the userLevel >= 3
  28.     set visible of button "Text Arrows" to the userLevel >= 2
  29.     set visible of button "Blind Typing" to the userLevel = 5
  30.     set hilite of button "Power Keys" to the powerKeys
  31.     set hilite of button "Text Arrows" to the textArrows
  32.     set hilite of button "Blind Typing" to the blindTyping
  33.   else
  34.     set hilite of the target to false
  35.   end if
  36. end setUserLevel
  37.  
  38.  
  39.  
  40. -- part 3 (field)
  41. -- low flags: 00
  42. -- high flags: 0000
  43. -- rect: left=108 top=70 right=90 bottom=237
  44. -- title width / last selected line: 0
  45. -- icon id / first selected line: 0 / 0
  46. -- text alignment: 0
  47. -- font id: 21
  48. -- text size: 14
  49. -- style flags: 0
  50. -- line height: 18
  51. -- part name: User Name
  52. ----- HyperTalk script -----
  53. on closeField
  54.   global userName
  55.   put card field "User Name" into userName
  56. end closeField
  57.  
  58.  
  59.  
  60. -- part 4 (button)
  61. -- low flags: 00
  62. -- high flags: A006
  63. -- rect: left=35 top=125 right=146 bottom=123
  64. -- title width / last selected line: 0
  65. -- icon id / first selected line: 0 / 0
  66. -- text alignment: 1
  67. -- font id: 0
  68. -- text size: 12
  69. -- style flags: 0
  70. -- line height: 16
  71. -- part name: Browsing
  72. ----- HyperTalk script -----
  73. on mouseUp
  74.   setUserLevel 1
  75. end mouseUp
  76.  
  77.  
  78.  
  79. -- part 5 (button)
  80. -- low flags: 00
  81. -- high flags: A006
  82. -- rect: left=35 top=146 right=167 bottom=123
  83. -- title width / last selected line: 0
  84. -- icon id / first selected line: 0 / 0
  85. -- text alignment: 1
  86. -- font id: 0
  87. -- text size: 12
  88. -- style flags: 0
  89. -- line height: 16
  90. -- part name: Typing
  91. ----- HyperTalk script -----
  92. on mouseUp
  93.   setUserLevel 2
  94. end mouseUp
  95.  
  96.  
  97.  
  98. -- part 6 (button)
  99. -- low flags: 00
  100. -- high flags: A006
  101. -- rect: left=35 top=167 right=188 bottom=123
  102. -- title width / last selected line: 0
  103. -- icon id / first selected line: 0 / 0
  104. -- text alignment: 1
  105. -- font id: 0
  106. -- text size: 12
  107. -- style flags: 0
  108. -- line height: 16
  109. -- part name: Painting
  110. ----- HyperTalk script -----
  111. on mouseUp
  112.   setUserLevel 3
  113. end mouseUp
  114.  
  115.  
  116.  
  117. -- part 7 (button)
  118. -- low flags: 00
  119. -- high flags: A006
  120. -- rect: left=35 top=188 right=209 bottom=123
  121. -- title width / last selected line: 0
  122. -- icon id / first selected line: 0 / 0
  123. -- text alignment: 1
  124. -- font id: 0
  125. -- text size: 12
  126. -- style flags: 0
  127. -- line height: 16
  128. -- part name: Authoring
  129. ----- HyperTalk script -----
  130. on mouseUp
  131.   setUserLevel 4
  132. end mouseUp
  133.  
  134.  
  135.  
  136. -- part 8 (button)
  137. -- low flags: 00
  138. -- high flags: E006
  139. -- rect: left=35 top=209 right=230 bottom=123
  140. -- title width / last selected line: 0
  141. -- icon id / first selected line: 0 / 0
  142. -- text alignment: 1
  143. -- font id: 0
  144. -- text size: 12
  145. -- style flags: 0
  146. -- line height: 16
  147. -- part name: Scripting
  148. ----- HyperTalk script -----
  149. on mouseUp
  150.   setUserLevel 5
  151. end mouseUp
  152.  
  153.  
  154.  
  155. -- part 9 (button)
  156. -- low flags: 00
  157. -- high flags: E005
  158. -- rect: left=135 top=146 right=167 bottom=238
  159. -- title width / last selected line: 0
  160. -- icon id / first selected line: 0 / 0
  161. -- text alignment: 1
  162. -- font id: 0
  163. -- text size: 12
  164. -- style flags: 0
  165. -- line height: 16
  166. -- part name: Text Arrows
  167. ----- HyperTalk script -----
  168. on mouseUp
  169.   set textArrows to the hilite of me
  170. end mouseUp
  171.  
  172.  
  173.  
  174. -- part 10 (button)
  175. -- low flags: 00
  176. -- high flags: E005
  177. -- rect: left=135 top=167 right=188 bottom=238
  178. -- title width / last selected line: 0
  179. -- icon id / first selected line: 0 / 0
  180. -- text alignment: 1
  181. -- font id: 0
  182. -- text size: 12
  183. -- style flags: 0
  184. -- line height: 16
  185. -- part name: Power Keys
  186. ----- HyperTalk script -----
  187. on mouseUp
  188.   set powerKeys to the hilite of button "Power Keys"
  189. end mouseUp
  190.  
  191.  
  192.  
  193. -- part 11 (button)
  194. -- low flags: 00
  195. -- high flags: E005
  196. -- rect: left=135 top=209 right=230 bottom=238
  197. -- title width / last selected line: 0
  198. -- icon id / first selected line: 0 / 0
  199. -- text alignment: 1
  200. -- font id: 0
  201. -- text size: 12
  202. -- style flags: 0
  203. -- line height: 16
  204. -- part name: Blind Typing
  205. ----- HyperTalk script -----
  206. on mouseUp
  207.   set blindTyping to the hilite of button "Blind Typing"
  208. end mouseUp
  209.  
  210.  
  211.  
  212. -- part 12 (field)
  213. -- low flags: 81
  214. -- high flags: 0000
  215. -- rect: left=107 top=104 right=123 bottom=132
  216. -- title width / last selected line: 0
  217. -- icon id / first selected line: 0 / 0
  218. -- text alignment: 0
  219. -- font id: 3
  220. -- text size: 12
  221. -- style flags: 0
  222. -- line height: 16
  223. -- part name: User Level
  224.  
  225.  
  226. -- part contents for background part 17
  227. ----- text -----
  228. User Preferences
  229.  
  230. -- part contents for card part 3
  231. ----- text -----
  232. Dungeon Mastery
  233.  
  234. -- part contents for card part 12
  235. ----- text -----
  236. 5
  237.  
  238. -- part contents for background part 7
  239. ----- text -----
  240. Hobbes:HyperCard 1.2:Fantasy Stacks:DMastery 2.0: